import java.util.Scanner;

public class c_first_check {
	Scanner m_user_input = new Scanner(System.in);
	public void m_1st_check(int v_operation) {
	if (v_operation==1){
		System.out.println
		("You have selected the first operation.");
		System.out.println
		("Enter interest rate of loan.");
		//Converts the rate given in integer to the proper form
		double v_rate = m_user_input.nextDouble()/1200;
		System.out.println
		("Enter loan expiration in years.");
		double v_years = m_user_input.nextDouble();
		System.out.println
		("Enter desired loan amount.");
		double v_amount = m_user_input.nextDouble();
		//Calculates monthly payment with the given values
		double v_monthly_payment = (v_rate+(v_rate/
				(Math.pow(1+v_rate, v_years*12)-1)))*v_amount;
		System.out.println
		//Prints the monthly payment
		("The monthly payment is "+v_monthly_payment);
		System.out.println
		("Bye bye!!!");
		//Forces exit of program
		System.exit(0);
	}
	}
}
	
